<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <%@ include file="/pages/common/common.jsp"%>
    <title>报表信息</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/themes/metro/easyui.css" />
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/themes/icon.css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/jquery-easyUI/1.5.2/datagrid-cellediting.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/scripts/fSelect.js"></script>
    <style type="text/css">
        .mask {
            position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777;
            z-index: 1002; left: 0px;
            opacity:0.5; -moz-opacity:0.5;
        }
    </style>
    <script type="application/javascript">
        var basePath = "${pageContext.request.contextPath}";
        
        function showRptIdx() {
            var form = $("<form>");//定义一个form表单
            form.attr("id", "rptForm");
            form.attr("style", "display:none");
            form.attr("target", "");
            form.attr("method", "post");
            //form.attr("action", "http://localhost:8081/rptTools/showRpt/showRptIndex?rptId=TlRBeFpXNWpiMlJs");
            form.attr("action", "http://localhost:8081/rptTools/showRpt/showRptIndex?rptId=TkRVeFpXNWpiMlJs");

            var userInput = $("<input>");
            userInput.attr("type", "hidden");
            userInput.attr("name", "userId");
            userInput.attr("id", "userId");
            userInput.attr("value", "1");
            form.append(userInput);

            var itemInput = $("<input>");
            itemInput.attr("type", "hidden");
            itemInput.attr("name", "itemCode");
            itemInput.attr("id", "itemCode");
            itemInput.attr("value", "zfgl");
            form.append(itemInput);

            var selfReportInput = $("<input>");
            selfReportInput.attr("type", "hidden");
            selfReportInput.attr("name", "selfReport");
            selfReportInput.attr("id", "selfReport");
            selfReportInput.attr("value", "1");
            form.append(selfReportInput);

            /*var mailCntInput = $("<input>");
            mailCntInput.attr("type", "hidden");
            mailCntInput.attr("name", "province");
            mailCntInput.attr("id", "province");
            mailCntInput.attr("value", "山东");
            form.append(mailCntInput);*/

            var cntInput = $("<input>");
            cntInput.attr("type", "hidden");
            cntInput.attr("name", "mail_cnt");
            cntInput.attr("id", "mail_cnt");
            cntInput.attr("value", "11");
            form.append(cntInput);

            var typeInput = $("<input>");
            typeInput.attr("type", "hidden");
            typeInput.attr("name", "product_type");
            typeInput.attr("id", "product_type");
            typeInput.attr("value", "2");
            form.append(typeInput);

            /*var startInput = $("<input>");
            startInput.attr("type", "hidden");
            startInput.attr("name", "confirm_start");
            startInput.attr("id", "confirm_start");
            startInput.attr("value", "90");
            form.append(startInput);*/

            var endInput = $("<input>");
            endInput.attr("type", "hidden");
            endInput.attr("name", "confirm_end");
            endInput.attr("id", "confirm_end");
            endInput.attr("value", "200");
            form.append(endInput);

            var idxInput = $("<input>");
            idxInput.attr("type", "hidden");
            idxInput.attr("name", "rptIdx");
            idxInput.attr("id", "rptIdx");
            idxInput.attr("value", "confirm");
            form.append(idxInput);

            var dimInput = $("<input>");
            dimInput.attr("type", "hidden");
            dimInput.attr("name", "rptDim");
            dimInput.attr("id", "rptDim");
            dimInput.attr("value", "province,city,order_date,product_type");
            form.append(dimInput);

            var orgIdInput = $("<input>");
            orgIdInput.attr("type", "hidden");
            orgIdInput.attr("name", "hid_clctOrgCode");
            orgIdInput.attr("id", "hid_clctOrgCode");
            //orgIdInput.attr("value", "'00003500','10000100','30000100','05000100','03000100','01000100','11000100','13000100','15000100','20000100','21000100','31000100','23000100','35000100','33000100','25000100','45000100','43000100','41000100','51080100','53000100','57020100','40000100','61000100','55000100','65000100','85000100','71000100','73000100','81000100','75000100','83000100','00002500','00001900','00000200','00002300','00004700','00000400','00000500','00000600','00003400','0000010J','99000100'");
            //orgIdInput.attr("value", "'10000100','69'");
            orgIdInput.attr("value", "'69'");
            form.append(orgIdInput);

            var orgNameInput = $("<input>");
            orgNameInput.attr("type", "hidden");
            orgNameInput.attr("name", "clctOrgCodeId");
            orgNameInput.attr("id", "clctOrgCodeId");
            //orgNameInput.attr("value", "速递物流公司,北京,天津,河北,山西,内蒙古,辽宁,吉林,黑龙江,上海,江苏,浙江,安徽,福建,江西,山东,河南,湖北,湖南,广东,广西,海南,重庆,四川,贵州,云南省分公司,西藏,陕西,甘肃,青海,宁夏,新疆,中国集邮总公司,邮票印制局,集团公司办公室,文史中心,中国集邮总公司网厅,邮资票品司,计划财务部,公众服务部,个性化邮票服务部,集团公司本部-直属,不详地区");
            //orgNameInput.attr("value", "北京,国内E标准");
            orgNameInput.attr("value", "国内E标准");
            form.append(orgNameInput);

            $("body").append(form);//将表单放置在web中

            form.attr('target', '_blank');
            form.submit();//表单提交
        }
    </script>
</head>

<body>
    <div id="tb" style="height:auto">
        <div style="padding:2px 5px;margin: 5px;">
            <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="showRptIdx();">查看报表</a>
        </div>
    </div>
</body>
</html>